package cn.xyafu.service;

import cn.xyafu.po.News;
import cn.xyafu.po.User;

import java.util.HashMap;
import java.util.List;

public interface NewsService {
    //发送消息
    public int addNews(News news);
    //通过nreceive(接收者id)查找消息
    public List<News> findNewsByUser(HashMap<String,Object> map);
    //User相关消息条数
    public Integer countNewsByUser(User user);
    //删除消息（消息nid）
    public Integer deleteNewsByNews(News news);
}
